package hash;

public class HashTest {
    public static void main(String[] args) {
        String ipPrefix = "192.168.0.";
        for (int i = 0; i < 5; i++) {
            String ip = ipPrefix + i + ":6379";
            System.out.println(ip + ", hash -> " + ip.hashCode());
        }
        for (int i = 0; i < 5; i++) {
            String ip = ipPrefix + i + ":6379";
            System.out.println(ip + ", FNV_hash -> " + HashUtil.FNVHash1(ip));
        }
    }
}
